﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Channels;
using Microsoft.ServiceModel.Samples;

namespace DMSWcfServices
{
    public class GZipTest
    {

        static void Main(string[] args)
        {

            CustomBinding custombinding = new CustomBinding();
            custombinding.Elements.Add(new GZipMessageEncodingBindingElement());

            EndpointAddress address = new EndpointAddress("http://localhost:8000/samples/GZipEncoder/HttpSampleServer");

            SampleServer.SampleServerClient server = new SampleServer.SampleServerClient(custombinding, address);
            server.Echo("Pascuastas");
        }
    }
}
